home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / bash_completion.d / pine < prev    next >
Encoding:
Text File  |  2010-11-16  |  440 b   |  23 lines

  1. # PINE address-book completion
  2.  
  3. have pine || have alpine &&
  4. _pineaddr()
  5. {
  6.     local cur
  7.  
  8.     COMPREPLY=()
  9.     _get_comp_words_by_ref cur
  10.  
  11.     COMPREPLY=( $( compgen -W '$( awk "{print \$1}" ~/.addressbook \
  12.         2>/dev/null)' -- "$cur" ) )
  13. } &&
  14. complete -F _pineaddr -o default pine alpine
  15.  
  16. # Local variables:
  17. # mode: shell-script
  18. # sh-basic-offset: 4
  19. # sh-indent-comment: t
  20. # indent-tabs-mode: nil
  21. # End:
  22. # ex: ts=4 sw=4 et filetype=sh
  23.